<if condition="$_D['tips'] neq ''">
    <setType name="字段提示">
        <setVal id="['tips']">{$_D['tips']}</setVal>
    </setType>
</if>
<if condition="$_D['formattribute'] neq ''">
    <setType name="表单附加属性">
        <setVal id="['formattribute']">{$_D['formattribute']}</setVal>
    </setType>
</if>
<if condition="$_D['css'] neq ''">
    <setType name="表单样式名">
        <setVal id="['css']">{$_D['css']}</setVal>
    </setType>
</if>
<if condition="($_D['minlength'] neq 0 AND $_D['minlength'] neq '') OR ($_D['maxlength'] neq 0 AND $_D['maxlength'] neq '')">
    <setType name="字符长度取值范围">
        <setVal id="['minlength']" name="最小值">{$_D['minlength']}</setVal>
        <setVal id="['maxlength']" name="最大值">{$_D['maxlength']}</setVal>
    </setType>
</if>
<if condition="$_D['pattern'] neq ''">
    <setType name="数据校验正则">
        <setVal id="['pattern']" name="正则表达式">{$_D['pattern']}</setVal>
        <setVal id="['errortips']" name="数据校验未通过的提示信息">{$_D['errortips']}</setVal>
    </setType>
</if>
<if condition="$_D['isadd'] eq 0">
    <setType name="是否显示">
        <setVal id="['isadd']" name="{:L('_D[isadd]_'.$_D['isadd'])}">{$_D['isadd']}</setVal>
    </setType>
</if>